<?php

namespace App\Http\Requests\Admin\Customer\Store;

use App\Http\Requests\ApiRequest;

/**
 * @property string name
 * @property string is_deleted
 * @property string pack_category_id
 * @property array order_bys
 */
class PackIndexRequest extends ApiRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'name'             => 'nullable|string',
            'is_deleted'       => 'nullable|int|in:0,1',
            'pack_category_id' => 'nullable|int|min:1',
            'order_bys'        => 'nullable|array',
        ];
    }

    /**
     * @return array
     */
//    public function messages()
//    {
//        return [
//            'name.*'       => '整体妆容的名称必须是字符串',
//            'is_deleted.*' => '整体妆容的显示状态必须是数值',
//        ];
//    }
}
